package com.xpresso.utils.unitTests;

import com.xpresso.utils.image.ExifHelper;
import com.xpresso.utils.image.JpgExtractor;

import junit.framework.TestCase;

public class TestJpgExtractor extends TestCase {

	public void testJpgExtractor(){
		String path = "C:/Enrique/Projects/Socialbum/WebContent/blogfiles/pic2web/email1208008695000/DSC02732.JPG";
		JpgExtractor jpg = new JpgExtractor();
		String exifInfo = jpg.getExifInfo(path);
		System.out.println(exifInfo);
		ExifHelper helper = new ExifHelper();
		System.out.println("Make -> " + helper.getExifTag(exifInfo, "[Exif] Make"));
		System.out.println("Make -> " + helper.getExifTag(exifInfo, "[Exif] Model"));
		
		System.out.println("Height -> " + helper.getExifTag(exifInfo, "[Jpeg] Image Height"));
		System.out.println("Width -> " + helper.getExifTag(exifInfo, "[Jpeg] Image Width"));
		System.out.println("Date taken -> " + helper.getExifTag(exifInfo, "[Exif] Date/Time"));
	}
	
	
}
